package ru.elteam.sandbox.jsf.beans;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: Nikita.Brazhnikov
 * Date: 10/2/12
 * Time: 4:10 PM
 * To change this template use File | Settings | File Templates.
 */
@Named("user_reg")
@RequestScoped
public class UserBean implements Serializable {
	private static final Logger log = LoggerFactory.getLogger(UserBean.class);
	private String username;
	private String email;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String proceed() {
		log.info("Proceed action, username: {}, email: {}", username, email);
		System.out.println(username + " " + email);
		return "confirm";
	}
}

